\hypertarget{display_8h}{
\section{front\_\-panel/display.h File Reference}
\label{display_8h}\index{front\_\-panel/display.h@{front\_\-panel/display.h}}
}
The serial interface to configure the device and control it.  


{\tt \#include \char`\"{}glcd.h\char`\"{}}\par
{\tt \#include \char`\"{}main.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\hypertarget{display_8h_336ebd4c83764bb32cfb362659d4a1b7}{
\#define \hyperlink{display_8h_336ebd4c83764bb32cfb362659d4a1b7}{CLEAR\_\-ANT\_\-AREA}()~glcd\_\-clear\_\-area(0,90,0,56)}
\label{display_8h_336ebd4c83764bb32cfb362659d4a1b7}

\begin{CompactList}\small\item\em Macro that clears the antenna area of the LCD. \item\end{CompactList}\item 
\hypertarget{display_8h_8d186ddc1b5310fe5242c1c7e6fb0452}{
\#define \hyperlink{display_8h_8d186ddc1b5310fe5242c1c7e6fb0452}{CLEAR\_\-ROTATOR\_\-AREA}()~glcd\_\-clear\_\-area(90,128,0,56)}
\label{display_8h_8d186ddc1b5310fe5242c1c7e6fb0452}

\begin{CompactList}\small\item\em Macro that clears the rotator area of the LCD. \item\end{CompactList}\item 
\hypertarget{display_8h_c9f4afa23faa573e4a60e85dbb43c576}{
\#define \hyperlink{display_8h_c9f4afa23faa573e4a60e85dbb43c576}{CLEAR\_\-RADIO\_\-FREQ\_\-AREA}()~glcd\_\-clear\_\-area(90,128,58,64)}
\label{display_8h_c9f4afa23faa573e4a60e85dbb43c576}

\begin{CompactList}\small\item\em Macro that clears the radio frequency area of the LCD. \item\end{CompactList}\item 
\hypertarget{display_8h_a794a073af7c37bb0a63262602e72951}{
\#define \hyperlink{display_8h_a794a073af7c37bb0a63262602e72951}{CLEAR\_\-RX\_\-ANTENNA\_\-AREA}()~glcd\_\-clear\_\-area(0,90,58,64)}
\label{display_8h_a794a073af7c37bb0a63262602e72951}

\begin{CompactList}\small\item\em Macro that clears the RX antenna area. \item\end{CompactList}\item 
\hypertarget{display_8h_bc8e0718a1dcd2641e0c29dab2332655}{
\#define \hyperlink{display_8h_bc8e0718a1dcd2641e0c29dab2332655}{CLEAR\_\-SET\_\-ROTATOR\_\-AREA}()~glcd\_\-clear\_\-area(0,80,58,64)}
\label{display_8h_bc8e0718a1dcd2641e0c29dab2332655}

\begin{CompactList}\small\item\em Macro that clears the rotator area. \item\end{CompactList}\item 
\hypertarget{display_8h_4cc526a29f2df26bfe481e20a624637a}{
\#define \hyperlink{display_8h_4cc526a29f2df26bfe481e20a624637a}{CLEAR\_\-SET\_\-SUB\_\-MENU\_\-ARRAY\_\-AREA}()~glcd\_\-clear\_\-area(44,84,35,64)}
\label{display_8h_4cc526a29f2df26bfe481e20a624637a}

\begin{CompactList}\small\item\em Macro that clears the sub menu array direction area. \item\end{CompactList}\item 
\hypertarget{display_8h_f7ae038061222ae97de11fe7a7bf2370}{
\#define \textbf{DISPLAY\_\-SCREENSAVER\_\-DEF\_\-CONTRAST}~20}
\label{display_8h_f7ae038061222ae97de11fe7a7bf2370}

\item 
\hypertarget{display_8h_fb883f694962e57fc2c1499dede2bf36}{
\#define \hyperlink{display_8h_fb883f694962e57fc2c1499dede2bf36}{DISPLAY\_\-RADIO\_\-FREQ\_\-X\_\-POS}~128}
\label{display_8h_fb883f694962e57fc2c1499dede2bf36}

\begin{CompactList}\small\item\em The position of the frequency text X position. \item\end{CompactList}\item 
\hypertarget{display_8h_d7b616915cbd04bdc04f9c641c2e38cb}{
\#define \hyperlink{display_8h_d7b616915cbd04bdc04f9c641c2e38cb}{DISPLAY\_\-RADIO\_\-FREQ\_\-Y\_\-POS}~58}
\label{display_8h_d7b616915cbd04bdc04f9c641c2e38cb}

\begin{CompactList}\small\item\em The position of the frequency text Y position. \item\end{CompactList}\item 
\hypertarget{display_8h_ced8ba9a80ac1cfbd64e408977a5b8b3}{
\#define \hyperlink{display_8h_ced8ba9a80ac1cfbd64e408977a5b8b3}{DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT1\_\-X\_\-POS}~128}
\label{display_8h_ced8ba9a80ac1cfbd64e408977a5b8b3}

\begin{CompactList}\small\item\em The position of the antenna1 rotator text X position. \item\end{CompactList}\item 
\hypertarget{display_8h_360efa89352869af97f54cc3f9a4c1fe}{
\#define \hyperlink{display_8h_360efa89352869af97f54cc3f9a4c1fe}{DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT1\_\-Y\_\-POS}~1}
\label{display_8h_360efa89352869af97f54cc3f9a4c1fe}

\begin{CompactList}\small\item\em The position of the antenna1 rotator text Y position. \item\end{CompactList}\item 
\hypertarget{display_8h_cea61262f2b25f9d44e718fa91d29045}{
\#define \hyperlink{display_8h_cea61262f2b25f9d44e718fa91d29045}{DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT2\_\-X\_\-POS}~128}
\label{display_8h_cea61262f2b25f9d44e718fa91d29045}

\begin{CompactList}\small\item\em The position of the antenna2 rotator text X position. \item\end{CompactList}\item 
\hypertarget{display_8h_39b495d9bea76a94f8317fef9be2e4e2}{
\#define \hyperlink{display_8h_39b495d9bea76a94f8317fef9be2e4e2}{DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT2\_\-Y\_\-POS}~16}
\label{display_8h_39b495d9bea76a94f8317fef9be2e4e2}

\begin{CompactList}\small\item\em The position of the antenna2 rotator text Y position. \item\end{CompactList}\item 
\hypertarget{display_8h_b0d14c578d27f56b60923c26672ad5e5}{
\#define \hyperlink{display_8h_b0d14c578d27f56b60923c26672ad5e5}{DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT3\_\-X\_\-POS}~128}
\label{display_8h_b0d14c578d27f56b60923c26672ad5e5}

\begin{CompactList}\small\item\em The position of the antenna3 rotator text X position. \item\end{CompactList}\item 
\hypertarget{display_8h_f63032991bbf659537f75f5c1b86346d}{
\#define \hyperlink{display_8h_f63032991bbf659537f75f5c1b86346d}{DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT3\_\-Y\_\-POS}~29}
\label{display_8h_f63032991bbf659537f75f5c1b86346d}

\begin{CompactList}\small\item\em The position of the antenna3 rotator text Y position. \item\end{CompactList}\item 
\hypertarget{display_8h_8d64cbf04c0ef98dab5b70b34ec0cf75}{
\#define \hyperlink{display_8h_8d64cbf04c0ef98dab5b70b34ec0cf75}{DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT4\_\-X\_\-POS}~128}
\label{display_8h_8d64cbf04c0ef98dab5b70b34ec0cf75}

\begin{CompactList}\small\item\em The position of the antenna4 rotator text X position. \item\end{CompactList}\item 
\hypertarget{display_8h_a3dcc3c6170bc4a261c65d0fef21b771}{
\#define \hyperlink{display_8h_a3dcc3c6170bc4a261c65d0fef21b771}{DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT4\_\-Y\_\-POS}~43}
\label{display_8h_a3dcc3c6170bc4a261c65d0fef21b771}

\begin{CompactList}\small\item\em The position of the antenna4 rotator text Y position. \item\end{CompactList}\item 
\hypertarget{display_8h_2aa1a354d2e19013c0963643da006276}{
\#define \hyperlink{display_8h_2aa1a354d2e19013c0963643da006276}{DISPLAY\_\-TEXT\_\-ANT1\_\-X\_\-POS}~0}
\label{display_8h_2aa1a354d2e19013c0963643da006276}

\begin{CompactList}\small\item\em The position of the antenna1 text X position. \item\end{CompactList}\item 
\hypertarget{display_8h_71d65f27592158f979fc2624fd10f83b}{
\#define \hyperlink{display_8h_71d65f27592158f979fc2624fd10f83b}{DISPLAY\_\-TEXT\_\-ANT1\_\-Y\_\-POS}~0}
\label{display_8h_71d65f27592158f979fc2624fd10f83b}

\begin{CompactList}\small\item\em The position of the antenna1 text Y position. \item\end{CompactList}\item 
\hypertarget{display_8h_fb08cf78490c3c56d3655207290a1e02}{
\#define \hyperlink{display_8h_fb08cf78490c3c56d3655207290a1e02}{DISPLAY\_\-TEXT\_\-ANT2\_\-X\_\-POS}~0}
\label{display_8h_fb08cf78490c3c56d3655207290a1e02}

\begin{CompactList}\small\item\em The position of the antenna2 text X position. \item\end{CompactList}\item 
\hypertarget{display_8h_9ef40451a47289c520102380595c8aec}{
\#define \hyperlink{display_8h_9ef40451a47289c520102380595c8aec}{DISPLAY\_\-TEXT\_\-ANT2\_\-Y\_\-POS}~15}
\label{display_8h_9ef40451a47289c520102380595c8aec}

\begin{CompactList}\small\item\em The position of the antenna2 text Y position. \item\end{CompactList}\item 
\hypertarget{display_8h_973db1a1b219856edab478b4a6da55e7}{
\#define \hyperlink{display_8h_973db1a1b219856edab478b4a6da55e7}{DISPLAY\_\-TEXT\_\-ANT3\_\-X\_\-POS}~0}
\label{display_8h_973db1a1b219856edab478b4a6da55e7}

\begin{CompactList}\small\item\em The position of the antenna3 text X position. \item\end{CompactList}\item 
\hypertarget{display_8h_41029b9a222b1cb7a60199298fb1811d}{
\#define \hyperlink{display_8h_41029b9a222b1cb7a60199298fb1811d}{DISPLAY\_\-TEXT\_\-ANT3\_\-Y\_\-POS}~28}
\label{display_8h_41029b9a222b1cb7a60199298fb1811d}

\begin{CompactList}\small\item\em The position of the antenna3 text Y position. \item\end{CompactList}\item 
\hypertarget{display_8h_098f40d118cd3f1cdd466ae41b197285}{
\#define \hyperlink{display_8h_098f40d118cd3f1cdd466ae41b197285}{DISPLAY\_\-TEXT\_\-ANT4\_\-X\_\-POS}~0}
\label{display_8h_098f40d118cd3f1cdd466ae41b197285}

\begin{CompactList}\small\item\em The position of the antenna4 text X position. \item\end{CompactList}\item 
\hypertarget{display_8h_355e2102ef65da22181427155fad6d00}{
\#define \hyperlink{display_8h_355e2102ef65da22181427155fad6d00}{DISPLAY\_\-TEXT\_\-ANT4\_\-Y\_\-POS}~42}
\label{display_8h_355e2102ef65da22181427155fad6d00}

\begin{CompactList}\small\item\em The position of the antenna4 text Y position. \item\end{CompactList}\item 
\hypertarget{display_8h_37f1ba54a4573f2e9466387adb9a1387}{
\#define \hyperlink{display_8h_37f1ba54a4573f2e9466387adb9a1387}{DISPLAY\_\-TEXT\_\-RX\_\-ANT\_\-X\_\-POS}~0}
\label{display_8h_37f1ba54a4573f2e9466387adb9a1387}

\begin{CompactList}\small\item\em The position of the RX antenna X pos. \item\end{CompactList}\item 
\hypertarget{display_8h_104fa5b92c8cf89ca61d7677a7ad6c92}{
\#define \hyperlink{display_8h_104fa5b92c8cf89ca61d7677a7ad6c92}{DISPLAY\_\-TEXT\_\-RX\_\-ANT\_\-Y\_\-POS}~58}
\label{display_8h_104fa5b92c8cf89ca61d7677a7ad6c92}

\begin{CompactList}\small\item\em The position of the RX antenna Y position. \item\end{CompactList}\item 
\hypertarget{display_8h_ee1813d7cb4a2133d130b3ca8f7bcd34}{
\#define \hyperlink{display_8h_ee1813d7cb4a2133d130b3ca8f7bcd34}{DISPLAY\_\-TEXT\_\-ROTATE\_\-ANT\_\-X\_\-POS}~0}
\label{display_8h_ee1813d7cb4a2133d130b3ca8f7bcd34}

\begin{CompactList}\small\item\em The position of the SET ROTATE X pos. \item\end{CompactList}\item 
\hypertarget{display_8h_859ed1b04bd9f983feaf904945acc547}{
\#define \hyperlink{display_8h_859ed1b04bd9f983feaf904945acc547}{DISPLAY\_\-TEXT\_\-ROTATE\_\-ANT\_\-Y\_\-POS}~58}
\label{display_8h_859ed1b04bd9f983feaf904945acc547}

\begin{CompactList}\small\item\em The position of the SET ROTATE Y position. \item\end{CompactList}\item 
\hypertarget{display_8h_5ebeebe5b254c0352633e42e18165634}{
\#define \hyperlink{display_8h_5ebeebe5b254c0352633e42e18165634}{DISPLAY\_\-TEXT\_\-ANT\_\-HEIGHT}~10}
\label{display_8h_5ebeebe5b254c0352633e42e18165634}

\begin{CompactList}\small\item\em The height of the antenna text inverting area. \item\end{CompactList}\item 
\hypertarget{display_8h_272532beb96b4c8375fd4314be8ccb28}{
\#define \hyperlink{display_8h_272532beb96b4c8375fd4314be8ccb28}{DISPLAY\_\-TEXT\_\-ANTENNA\_\-WIDTH}~8}
\label{display_8h_272532beb96b4c8375fd4314be8ccb28}

\begin{CompactList}\small\item\em The width of the antenna text. \item\end{CompactList}\item 
\hypertarget{display_8h_9a3d004736f9df930e6fdf27a2f3e2a5}{
\#define \hyperlink{display_8h_9a3d004736f9df930e6fdf27a2f3e2a5}{DISPLAY\_\-TEXT\_\-ANTENNA\_\-IN\_\-USE\_\-ADDITION\_\-WIDTH}~16}
\label{display_8h_9a3d004736f9df930e6fdf27a2f3e2a5}

\begin{CompactList}\small\item\em The width addition of the inverted area when an antenna is in use. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hypertarget{display_8h_f0a2455a1aa3f6a11580d7631f47e801}{
void \hyperlink{display_8h_f0a2455a1aa3f6a11580d7631f47e801}{display\_\-setup\_\-view} (void)}
\label{display_8h_f0a2455a1aa3f6a11580d7631f47e801}

\begin{CompactList}\small\item\em Display the setup in progress screen. \item\end{CompactList}\item 
\hypertarget{display_8h_c2c8455c6c331a11f443913bbd1969e4}{
void \hyperlink{display_8h_c2c8455c6c331a11f443913bbd1969e4}{display\_\-shutdown\_\-view} (void)}
\label{display_8h_c2c8455c6c331a11f443913bbd1969e4}

\begin{CompactList}\small\item\em Display the shutdown in progress screen. \item\end{CompactList}\item 
void \hyperlink{display_8h_b17030950245db692c4ef29963ca4f40}{display\_\-antennas} (unsigned char band)
\begin{CompactList}\small\item\em Display a set of antennas on the display. \item\end{CompactList}\item 
void \hyperlink{display_8h_194e869821d2f61c33d1989e3078f52c}{display\_\-rotator\_\-directions} (unsigned char band)
\begin{CompactList}\small\item\em Display the current rotator directions If the rotator option has been enabled for a certain antenna it will be shown it's current direction on the LCD. \item\end{CompactList}\item 
void \hyperlink{display_8h_d7d5e5268961e51f07e82a30bbeb2f19}{display\_\-radio\_\-freq} (unsigned char length, char $\ast$freq)
\begin{CompactList}\small\item\em Displays the radios frequency Will display the radios frequency in the bottom right corner of the display. \item\end{CompactList}\item 
void \hyperlink{display_8h_007032bb230fa4999c99509762eaf34b}{display\_\-view} (unsigned char mode)
\begin{CompactList}\small\item\em Displays a specified view This is to display lines, icons etc depending on what kind of of \char`\"{}view\char`\"{} you wish to display. \item\end{CompactList}\item 
void \hyperlink{display_8h_0080e7a8ad65e195f1a9b8c2154f08a6}{display\_\-invert\_\-antenna} (unsigned char ant\_\-index)
\begin{CompactList}\small\item\em Displays an antenna but inverted. \item\end{CompactList}\item 
\hypertarget{display_8h_b40f4f9d4d5639d8c9915e14e87a159a}{
void \hyperlink{display_8h_b40f4f9d4d5639d8c9915e14e87a159a}{display\_\-update\_\-screensaver} (void)}
\label{display_8h_b40f4f9d4d5639d8c9915e14e87a159a}

\begin{CompactList}\small\item\em Updates the screensaver which consist of a clock. \item\end{CompactList}\item 
unsigned char \hyperlink{display_8h_4edeb97fcf01bfae062fa0994c535227}{display\_\-screensaver\_\-mode} (void)
\begin{CompactList}\small\item\em Get the mode of the screensaver. \item\end{CompactList}\item 
void \hyperlink{display_8h_6165152b54eeebbca17b17cb2ce01060}{display\_\-set\_\-backlight} (unsigned char value)
\begin{CompactList}\small\item\em Set the backlight level of the LCD. \item\end{CompactList}\item 
void \hyperlink{display_8h_3d6b21ea8d6cb4d015e381defba53f92}{display\_\-update} (unsigned char band, unsigned char antenna)
\begin{CompactList}\small\item\em Updates the display. \item\end{CompactList}\item 
void \hyperlink{display_8h_973dcc631187754fc6bb4b61d3e55c43}{display\_\-show\_\-rx\_\-ant} (unsigned char ant\_\-index)
\begin{CompactList}\small\item\em Show the current selected RX ant. \item\end{CompactList}\item 
unsigned char \hyperlink{display_8h_434e807810cc96cf98720b9b61dbbb75}{display\_\-calculate\_\-width} (char $\ast$str, unsigned char font, unsigned char length)
\begin{CompactList}\small\item\em Retrieve the width of a string in pixels. \item\end{CompactList}\item 
void \hyperlink{display_8h_0d097e9d30533cced950d407afdbebf0}{display\_\-show\_\-set\_\-heading} (unsigned int rotator\_\-heading, unsigned char view\_\-360\_\-deg)
\begin{CompactList}\small\item\em Show SET rotator heading. \item\end{CompactList}\item 
void \hyperlink{display_8h_367b8eeb3e75ed3625583c44744e96e8}{display\_\-text\_\-center\_\-adjust} (unsigned char y, char $\ast$str, unsigned char length, unsigned char font)
\begin{CompactList}\small\item\em Displays a piece of text center adjusted on the display. \item\end{CompactList}\item 
\hypertarget{display_8h_0e71cc67a9541326457498e88866d2a4}{
void \hyperlink{display_8h_0e71cc67a9541326457498e88866d2a4}{display\_\-update\_\-radio\_\-freq} (void)}
\label{display_8h_0e71cc67a9541326457498e88866d2a4}

\begin{CompactList}\small\item\em Update the radio frequency area of the display. \item\end{CompactList}\item 
void \hyperlink{display_8h_30b437c52c0e77dfd98a0679ea05eaf1}{display\_\-show\_\-sub\_\-menu} (unsigned char ant\_\-index, unsigned char sub\_\-menu\_\-type)
\begin{CompactList}\small\item\em Will show the sub menu of a certain antenna. \item\end{CompactList}\item 
void \hyperlink{display_8h_f967d95b92c9a29b53bfa6a4d68e1e0b}{display\_\-show\_\-powermeter\_\-bargraph} (unsigned int fwd\_\-power, unsigned int ref\_\-power)
\begin{CompactList}\small\item\em Show the power meter bargraphs. \item\end{CompactList}\item 
void \hyperlink{display_8h_319b01f244a5cb871a41f89c08cf7749}{display\_\-show\_\-powermeter\_\-text} (unsigned int fwd\_\-power, unsigned int ref\_\-power, unsigned int vswr)
\begin{CompactList}\small\item\em This function will print out the power meter text which shows FWD, REF power and VSWR. \item\end{CompactList}\item 
\hypertarget{display_8h_5e5be1dc665620e5ef0c6ebec25609af}{
void \hyperlink{display_8h_5e5be1dc665620e5ef0c6ebec25609af}{display\_\-show\_\-powermeter} (void)}
\label{display_8h_5e5be1dc665620e5ef0c6ebec25609af}

\begin{CompactList}\small\item\em This function will show the power meter display. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
The serial interface to configure the device and control it. 

\begin{Desc}
\item[Author:]Mikael Larsmark, SM2WMV \end{Desc}
\begin{Desc}
\item[Date:]2010-01-25 

\begin{Code}\begin{verbatim} #include "front_panel/display.h" 
\end{verbatim}
\end{Code}

 \end{Desc}


Definition in file \hyperlink{display_8h-source}{display.h}.

\subsection{Function Documentation}
\hypertarget{display_8h_b17030950245db692c4ef29963ca4f40}{
\index{display.h@{display.h}!display\_\-antennas@{display\_\-antennas}}
\index{display\_\-antennas@{display\_\-antennas}!display.h@{display.h}}
\subsubsection[{display\_\-antennas}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-antennas (unsigned char {\em band})}}
\label{display_8h_b17030950245db692c4ef29963ca4f40}


Display a set of antennas on the display. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em band}]The band you wish to show the antennas from \end{description}
\end{Desc}


Definition at line 149 of file display.c.

References antenna\_\-ctrl\_\-get\_\-antenna\_\-text(), antenna\_\-ctrl\_\-get\_\-antenna\_\-text\_\-length(), antenna\_\-ctrl\_\-get\_\-flags(), ANTENNA\_\-IN\_\-USE\_\-FLAG, CLEAR\_\-ANT\_\-AREA, DISPLAY\_\-TEXT\_\-ANT1\_\-X\_\-POS, DISPLAY\_\-TEXT\_\-ANT1\_\-Y\_\-POS, DISPLAY\_\-TEXT\_\-ANT2\_\-X\_\-POS, DISPLAY\_\-TEXT\_\-ANT2\_\-Y\_\-POS, DISPLAY\_\-TEXT\_\-ANT3\_\-X\_\-POS, DISPLAY\_\-TEXT\_\-ANT3\_\-Y\_\-POS, DISPLAY\_\-TEXT\_\-ANT4\_\-X\_\-POS, and DISPLAY\_\-TEXT\_\-ANT4\_\-Y\_\-POS.

Referenced by display\_\-update().\hypertarget{display_8h_434e807810cc96cf98720b9b61dbbb75}{
\index{display.h@{display.h}!display\_\-calculate\_\-width@{display\_\-calculate\_\-width}}
\index{display\_\-calculate\_\-width@{display\_\-calculate\_\-width}!display.h@{display.h}}
\subsubsection[{display\_\-calculate\_\-width}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char display\_\-calculate\_\-width (char $\ast$ {\em str}, \/  unsigned char {\em font}, \/  unsigned char {\em length})}}
\label{display_8h_434e807810cc96cf98720b9b61dbbb75}


Retrieve the width of a string in pixels. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em str}]The text string you wish to find out the length of \item[{\em font}]Which font type the string is \item[{\em length}]The length of the string (strlen) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The actual graphical width of the text string sent in, in pixels \end{Desc}


Definition at line 111 of file display.c.

Referenced by display\_\-text\_\-center\_\-adjust(), display\_\-text\_\-right\_\-adjust(), and menu\_\-show\_\-text().\hypertarget{display_8h_0080e7a8ad65e195f1a9b8c2154f08a6}{
\index{display.h@{display.h}!display\_\-invert\_\-antenna@{display\_\-invert\_\-antenna}}
\index{display\_\-invert\_\-antenna@{display\_\-invert\_\-antenna}!display.h@{display.h}}
\subsubsection[{display\_\-invert\_\-antenna}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-invert\_\-antenna (unsigned char {\em ant\_\-index})}}
\label{display_8h_0080e7a8ad65e195f1a9b8c2154f08a6}


Displays an antenna but inverted. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ant\_\-index}]Which antenna you wish to invert \end{description}
\end{Desc}


Definition at line 241 of file display.c.

References antenna\_\-ctrl\_\-get\_\-antenna\_\-text\_\-length(), antenna\_\-ctrl\_\-get\_\-flags(), ANTENNA\_\-IN\_\-USE\_\-FLAG, DISPLAY\_\-TEXT\_\-ANT1\_\-Y\_\-POS, DISPLAY\_\-TEXT\_\-ANT2\_\-Y\_\-POS, DISPLAY\_\-TEXT\_\-ANT3\_\-Y\_\-POS, DISPLAY\_\-TEXT\_\-ANT4\_\-Y\_\-POS, DISPLAY\_\-TEXT\_\-ANT\_\-HEIGHT, DISPLAY\_\-TEXT\_\-ANTENNA\_\-IN\_\-USE\_\-ADDITION\_\-WIDTH, and DISPLAY\_\-TEXT\_\-ANTENNA\_\-WIDTH.

Referenced by display\_\-update().\hypertarget{display_8h_d7d5e5268961e51f07e82a30bbeb2f19}{
\index{display.h@{display.h}!display\_\-radio\_\-freq@{display\_\-radio\_\-freq}}
\index{display\_\-radio\_\-freq@{display\_\-radio\_\-freq}!display.h@{display.h}}
\subsubsection[{display\_\-radio\_\-freq}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-radio\_\-freq (unsigned char {\em length}, \/  char $\ast$ {\em freq})}}
\label{display_8h_d7d5e5268961e51f07e82a30bbeb2f19}


Displays the radios frequency Will display the radios frequency in the bottom right corner of the display. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em freq}]the frequency you want to display \end{description}
\end{Desc}


Definition at line 286 of file display.c.

References CLEAR\_\-RADIO\_\-FREQ\_\-AREA, DISPLAY\_\-RADIO\_\-FREQ\_\-X\_\-POS, DISPLAY\_\-RADIO\_\-FREQ\_\-Y\_\-POS, and display\_\-text\_\-right\_\-adjust().

Referenced by display\_\-update\_\-radio\_\-freq().\hypertarget{display_8h_194e869821d2f61c33d1989e3078f52c}{
\index{display.h@{display.h}!display\_\-rotator\_\-directions@{display\_\-rotator\_\-directions}}
\index{display\_\-rotator\_\-directions@{display\_\-rotator\_\-directions}!display.h@{display.h}}
\subsubsection[{display\_\-rotator\_\-directions}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-rotator\_\-directions (unsigned char {\em band})}}
\label{display_8h_194e869821d2f61c33d1989e3078f52c}


Display the current rotator directions If the rotator option has been enabled for a certain antenna it will be shown it's current direction on the LCD. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em band}]The band you wish to show the rotators direction \end{description}
\end{Desc}


Definition at line 192 of file display.c.

References antenna\_\-ctrl\_\-get\_\-direction(), antenna\_\-ctrl\_\-get\_\-flags(), antenna\_\-ctrl\_\-get\_\-sub\_\-menu\_\-type(), ANTENNA\_\-ROTATOR\_\-FLAG, CLEAR\_\-ROTATOR\_\-AREA, display\_\-text\_\-right\_\-adjust(), DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT1\_\-X\_\-POS, DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT1\_\-Y\_\-POS, DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT2\_\-X\_\-POS, DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT2\_\-Y\_\-POS, DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT3\_\-X\_\-POS, DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT3\_\-Y\_\-POS, DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT4\_\-X\_\-POS, DISPLAY\_\-TEXT\_\-ROTATOR\_\-ANT4\_\-Y\_\-POS, sub\_\-menu\_\-get\_\-current\_\-pos(), sub\_\-menu\_\-get\_\-text(), and SUBMENU\_\-VERT\_\-ARRAY.

Referenced by display\_\-update().\hypertarget{display_8h_4edeb97fcf01bfae062fa0994c535227}{
\index{display.h@{display.h}!display\_\-screensaver\_\-mode@{display\_\-screensaver\_\-mode}}
\index{display\_\-screensaver\_\-mode@{display\_\-screensaver\_\-mode}!display.h@{display.h}}
\subsubsection[{display\_\-screensaver\_\-mode}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char display\_\-screensaver\_\-mode (void)}}
\label{display_8h_4edeb97fcf01bfae062fa0994c535227}


Get the mode of the screensaver. 

\begin{Desc}
\item[Returns:]0 if the screensaver is disabled, 1 otherwise \end{Desc}


Definition at line 69 of file display.c.

References screensaver\_\-mode.\hypertarget{display_8h_6165152b54eeebbca17b17cb2ce01060}{
\index{display.h@{display.h}!display\_\-set\_\-backlight@{display\_\-set\_\-backlight}}
\index{display\_\-set\_\-backlight@{display\_\-set\_\-backlight}!display.h@{display.h}}
\subsubsection[{display\_\-set\_\-backlight}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-set\_\-backlight (unsigned char {\em value})}}
\label{display_8h_6165152b54eeebbca17b17cb2ce01060}


Set the backlight level of the LCD. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em value}]What we wish to set the backlight level to to, 0-100\% \end{description}
\end{Desc}


Definition at line 97 of file display.c.

Referenced by main(), and menu\_\-action().\hypertarget{display_8h_f967d95b92c9a29b53bfa6a4d68e1e0b}{
\index{display.h@{display.h}!display\_\-show\_\-powermeter\_\-bargraph@{display\_\-show\_\-powermeter\_\-bargraph}}
\index{display\_\-show\_\-powermeter\_\-bargraph@{display\_\-show\_\-powermeter\_\-bargraph}!display.h@{display.h}}
\subsubsection[{display\_\-show\_\-powermeter\_\-bargraph}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-show\_\-powermeter\_\-bargraph (unsigned int {\em fwd\_\-power}, \/  unsigned int {\em ref\_\-power})}}
\label{display_8h_f967d95b92c9a29b53bfa6a4d68e1e0b}


Show the power meter bargraphs. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em fwd\_\-power}]The forward power in percent \item[{\em ref\_\-power}]The reflected power in percent \end{description}
\end{Desc}


Definition at line 524 of file display.c.

References display\_\-show\_\-bargraph\_\-fwd(), and display\_\-show\_\-bargraph\_\-ref().\hypertarget{display_8h_319b01f244a5cb871a41f89c08cf7749}{
\index{display.h@{display.h}!display\_\-show\_\-powermeter\_\-text@{display\_\-show\_\-powermeter\_\-text}}
\index{display\_\-show\_\-powermeter\_\-text@{display\_\-show\_\-powermeter\_\-text}!display.h@{display.h}}
\subsubsection[{display\_\-show\_\-powermeter\_\-text}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-show\_\-powermeter\_\-text (unsigned int {\em fwd\_\-power}, \/  unsigned int {\em ref\_\-power}, \/  unsigned int {\em vswr})}}
\label{display_8h_319b01f244a5cb871a41f89c08cf7749}


This function will print out the power meter text which shows FWD, REF power and VSWR. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em fwd\_\-power}]Forward power in watts \item[{\em ref\_\-power}]Reflected power in watts \item[{\em vswr}]The current VSWR, for example 151 means 1.51:1 \end{description}
\end{Desc}


Definition at line 533 of file display.c.

References display\_\-text\_\-right\_\-adjust().\hypertarget{display_8h_973dcc631187754fc6bb4b61d3e55c43}{
\index{display.h@{display.h}!display\_\-show\_\-rx\_\-ant@{display\_\-show\_\-rx\_\-ant}}
\index{display\_\-show\_\-rx\_\-ant@{display\_\-show\_\-rx\_\-ant}!display.h@{display.h}}
\subsubsection[{display\_\-show\_\-rx\_\-ant}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-show\_\-rx\_\-ant (unsigned char {\em ant\_\-index})}}
\label{display_8h_973dcc631187754fc6bb4b61d3e55c43}


Show the current selected RX ant. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ant\_\-index}]The antenna index of which antenna that is selected and should be shown \end{description}
\end{Desc}


Definition at line 304 of file display.c.

References antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-count(), antenna\_\-ctrl\_\-get\_\-rx\_\-antenna\_\-name(), CLEAR\_\-RX\_\-ANTENNA\_\-AREA, struct\_\-status::current\_\-display\_\-level, DISPLAY\_\-LEVEL\_\-BAND, DISPLAY\_\-TEXT\_\-RX\_\-ANT\_\-X\_\-POS, DISPLAY\_\-TEXT\_\-RX\_\-ANT\_\-Y\_\-POS, display\_\-view(), status, and VIEW\_\-ANTENNAS.

Referenced by event\_\-update\_\-display().\hypertarget{display_8h_0d097e9d30533cced950d407afdbebf0}{
\index{display.h@{display.h}!display\_\-show\_\-set\_\-heading@{display\_\-show\_\-set\_\-heading}}
\index{display\_\-show\_\-set\_\-heading@{display\_\-show\_\-set\_\-heading}!display.h@{display.h}}
\subsubsection[{display\_\-show\_\-set\_\-heading}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-show\_\-set\_\-heading (unsigned int {\em rotator\_\-heading}, \/  unsigned char {\em view\_\-360\_\-deg})}}
\label{display_8h_0d097e9d30533cced950d407afdbebf0}


Show SET rotator heading. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em rotator\_\-heading}]The current set rotator heading \item[{\em view\_\-360\_\-deg}]The status of the view\_\-360\_\-deg option \end{description}
\end{Desc}


Definition at line 326 of file display.c.

References struct\_\-status::current\_\-display\_\-level, DISPLAY\_\-LEVEL\_\-BAND, display\_\-text\_\-center\_\-adjust(), and status.

Referenced by event\_\-pulse\_\-sensor\_\-down(), event\_\-pulse\_\-sensor\_\-up(), event\_\-rotate\_\-button\_\-pressed(), event\_\-tx\_\-button1\_\-pressed(), event\_\-tx\_\-button2\_\-pressed(), event\_\-tx\_\-button3\_\-pressed(), and event\_\-tx\_\-button4\_\-pressed().\hypertarget{display_8h_30b437c52c0e77dfd98a0679ea05eaf1}{
\index{display.h@{display.h}!display\_\-show\_\-sub\_\-menu@{display\_\-show\_\-sub\_\-menu}}
\index{display\_\-show\_\-sub\_\-menu@{display\_\-show\_\-sub\_\-menu}!display.h@{display.h}}
\subsubsection[{display\_\-show\_\-sub\_\-menu}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-show\_\-sub\_\-menu (unsigned char {\em ant\_\-index}, \/  unsigned char {\em sub\_\-menu\_\-type})}}
\label{display_8h_30b437c52c0e77dfd98a0679ea05eaf1}


Will show the sub menu of a certain antenna. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ant\_\-index}]The antenna index (0-3) \item[{\em sub\_\-menu\_\-type}]Which type of sub menu it is \end{description}
\end{Desc}


Definition at line 438 of file display.c.

References antenna\_\-ctrl\_\-get\_\-antenna\_\-text(), CLEAR\_\-SET\_\-SUB\_\-MENU\_\-ARRAY\_\-AREA, struct\_\-status::current\_\-display\_\-level, DISPLAY\_\-LEVEL\_\-SUBMENU, display\_\-text\_\-center\_\-adjust(), status, sub\_\-menu\_\-get\_\-current\_\-pos(), sub\_\-menu\_\-get\_\-text(), and SUBMENU\_\-VERT\_\-ARRAY.

Referenced by event\_\-pulse\_\-sensor\_\-down(), event\_\-pulse\_\-sensor\_\-up(), and event\_\-sub\_\-button\_\-pressed().\hypertarget{display_8h_367b8eeb3e75ed3625583c44744e96e8}{
\index{display.h@{display.h}!display\_\-text\_\-center\_\-adjust@{display\_\-text\_\-center\_\-adjust}}
\index{display\_\-text\_\-center\_\-adjust@{display\_\-text\_\-center\_\-adjust}!display.h@{display.h}}
\subsubsection[{display\_\-text\_\-center\_\-adjust}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-text\_\-center\_\-adjust (unsigned char {\em y}, \/  char $\ast$ {\em str}, \/  unsigned char {\em length}, \/  unsigned char {\em font})}}
\label{display_8h_367b8eeb3e75ed3625583c44744e96e8}


Displays a piece of text center adjusted on the display. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em y}]Where the text should be located in y-axis (pixels) \item[{\em str}]The string we wish to center adjust to the display \item[{\em length}]The length of the string (strlen) \item[{\em font}]Which font you wish to show the string with \end{description}
\end{Desc}


Definition at line 132 of file display.c.

References display\_\-calculate\_\-width().

Referenced by display\_\-setup\_\-view(), display\_\-show\_\-set\_\-heading(), display\_\-show\_\-sub\_\-menu(), and display\_\-shutdown\_\-view().\hypertarget{display_8h_3d6b21ea8d6cb4d015e381defba53f92}{
\index{display.h@{display.h}!display\_\-update@{display\_\-update}}
\index{display\_\-update@{display\_\-update}!display.h@{display.h}}
\subsubsection[{display\_\-update}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-update (unsigned char {\em band}, \/  unsigned char {\em antenna})}}
\label{display_8h_3d6b21ea8d6cb4d015e381defba53f92}


Updates the display. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em band}]Which band to show the antenna information from \item[{\em antenna}]The antenna combination that is currently selected \end{description}
\end{Desc}


Definition at line 358 of file display.c.

References struct\_\-status::current\_\-display\_\-level, display\_\-antennas(), display\_\-invert\_\-antenna(), DISPLAY\_\-LEVEL\_\-BAND, display\_\-rotator\_\-directions(), display\_\-update\_\-radio\_\-freq(), display\_\-view(), status, and VIEW\_\-ANTENNAS.

Referenced by event\_\-tx\_\-button1\_\-pressed(), event\_\-tx\_\-button2\_\-pressed(), event\_\-tx\_\-button3\_\-pressed(), event\_\-tx\_\-button4\_\-pressed(), and event\_\-update\_\-display().\hypertarget{display_8h_007032bb230fa4999c99509762eaf34b}{
\index{display.h@{display.h}!display\_\-view@{display\_\-view}}
\index{display\_\-view@{display\_\-view}!display.h@{display.h}}
\subsubsection[{display\_\-view}]{\setlength{\rightskip}{0pt plus 5cm}void display\_\-view (unsigned char {\em mode})}}
\label{display_8h_007032bb230fa4999c99509762eaf34b}


Displays a specified view This is to display lines, icons etc depending on what kind of of \char`\"{}view\char`\"{} you wish to display. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em mode}]Which view mode you wish to display \end{description}
\end{Desc}


Definition at line 296 of file display.c.

References glcd\_\-line(), and VIEW\_\-ANTENNAS.

Referenced by display\_\-show\_\-rx\_\-ant(), display\_\-update(), and display\_\-update\_\-radio\_\-freq().